import request from '@/utils/request'
import API from './constants'

/**
 * 查询轮播图数据
 */
export const getBanners = () => request({
  url: API.BANNER_API,
  headers: {
    'x-platform': 'pc',
  },
})

/**
 * 查询爆款商品
 */
export const getBaokuan = (start = 0) => request({
  url: API.BAOKUAN_API,
  params: {
    start,
  },
})
export const getFenlei = (start = 0) => request({
  url: API.FENLEI_API,
  params: {
    start,
  },
})
// export {
//   getBanners,
//   getBaokuan,
// }
